

jQuery.extend({
	alert:function(id, msg) {
		var alertMsg = "<div class='alert alert-danger'>"+
        "<button type='button' class='close' data-dismiss='alert'>&times;</button>"+
        "<strong>"+msg+"</strong></div>";
		$("#"+id).html(alertMsg);
	}
});

function changeData(data) {
	var attrs = data.attrsEntrySet;
	var obj = {};
	$.each(attrs, function(i, n){
		eval("obj."+n.key+"=\""+n.value+"\"");
	})
	return obj;
}